package com.apes.hr.base.repository;

import com.apes.framework.jpa.repository.CustomRepository;
import com.apes.hr.base.model.Staffing;
import com.apes.hr.base.model.WorkPost;
import com.apes.scm.masterdata.frame.model.Branch;
import com.apes.scm.masterdata.party.model.PartyRole;

import java.util.List;

/**
 * @author HuJianLin
 * @create 2018-04-28 16:07
 */
public interface StaffingRepository extends CustomRepository<Staffing, String>{

    List<Staffing> findByBranchAndWorkPost(Branch branch, WorkPost workPost);

    Staffing findByCompanyAndBranchAndWorkPost(PartyRole company,Branch branch, WorkPost workPost);
}
